import type { Subject } from '@/types/subject'
import { http } from '@/utils/http'

export const listSubject = () => {
  return http<Subject[]>({
    method: 'GET',
    url: '/api/subject/listSubject',
  })
}

export const selectSubjectById = (subjectId: number) => {
  return http<Subject>({
    method: 'GET',
    url: '/api/subject/selectSubjectById',
    data: { subjectId },
  })
}
